package com.mapper;

import com.pojo.Score;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author
 * @description score
 * @date 2022-12-19
 */
@Mapper
@Repository
public interface ScoreMapper {

    /**
     * 新增
     *
     * @author
     * @date 2022/12/19
     **/
    int insert(Score score);

    /**
     * 刪除
     *
     * @author
     * @date 2022/12/19
     **/
    int delete(int id);

    /**
     * 更新
     *
     * @author
     * @date 2022/12/19
     **/
    int update(Score score);


    /**
     * 查询 分页查询
     *
     * @author
     * @date 2022/12/19
     **/
    List<Score> pageList(@Param("pageNum") int pageNum, @Param("pageSize") int pageSize);

}